﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QuanLyChungCu_V
{
    public partial class dlgAddApartment : Form
    {
        public dlgAddApartment()
        {
           
            InitializeComponent();
        }
       public Guid id 
       
        {
            get { return Guid.Parse(mtxtMaCH.Text); }
        }
      
        public int rent
        
        {
            get { return int.Parse(cboGiathue.Text); }
        }
      
        public int saleprice 
       
        {
            get { return int.Parse(cboGiaban.Text); }
        }
     
       
        public bool state
        {
            get { return bool.Parse(cboControng.Text); }
        
        }
             public int TangLau
        {
            get { return int.Parse(cboTanglau.Text); }
        }

        private void btCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
        }

        private void btOK_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
        }

        private void dlgAddApartment_Load(object sender, EventArgs e)
        {

        }
    }
}
